<?php
defined('SYSPATH') OR die('No direct access allowed.');
/**
 * confirm.php
 * @author ranuandra
 *
 * 30 Apr 2012 23:19:20
 *
 * 
 */
?>
			<p>Apakah anda benar-benar akan mengajukan lamaran dengan kualifikasi di bawah ini:</p>
        	<h1 class="underline"><?php echo $data->deskripsi ?></h1>
			<h3>Deskripsi</h3>
            <table class="jobs">
            	<tr>
                	<td class="label">Area Of Work</td>
                    <td><?php echo $data->mstareaofwork->areaofwork ?></td>
                </tr>
            	<tr>
                	<td class="label">Pendidikan</td>
                    <td><?php echo $data->mstpendidikan->pendidikan ?></td>
                </tr>
            	<tr>
                	<td class="label">Ditutup Tanggal</td>
                    <td><?php echo date("d-m-Y", strtotime( $data->dateto ) ) ?></td>
                </tr>
            </table>
			<h3>Syarat Umum</h3>
			<?php echo $data->kualifikasi_umum ?>
			<h3>Syarat Khusus</h3>
			<ul class="syarat">
			<?php echo $data->kualifikasi_khusus ?>
            </ul>
            <div class="apply-bar">
            <?php 
            if(Auth_ORM::instance()->logged_in())
            {
            	echo Form::open(URL::base()."lowongan/save");
            	echo Form::input('captcha', '', array());
                if(isset($captcha))
                {
                   echo "<br/>";
                   echo $captcha->render();
                }
                if(isset($errors['captcha']))
                {
                	echo $errors['captcha'];
                }
				echo Form::hidden('mstlowongan_id',$data->id, array());
				echo Form::submit('submit', 'Confirm');
            	echo Form::close();
            } else 
            {
            ?>
            	<a href="#" class="button">Login untuk Lamaran</a> <a href="<?php echo URL::base()?>home/register" class="button">Registrasi</a>
            <?php 
            }
            ?>
            </div>